package cn.wdm.ymcc.feign;

import cn.wdm.ymcc.domain.MessageEmail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-common",fallbackFactory = SendEmailFeignClientFallBackFactory.class)
public interface SendEmailFeignClient {
    @RequestMapping(value="/messageEmail/send",method= RequestMethod.POST)
    Boolean sendMsg(@RequestBody MessageEmail messageEmail);
}
